﻿<?php
    function get_pdo(){
        $servername = "localhost";
        $dbname = "phpCommunity";
        $username = "root";
        $password = "root";
        $pdo = new PDO("mysql:host=$servername;dbname=$dbname;port=3306;charset=utf8mb4", $username, $password);
        return $pdo;
    }
?>